package ;

import haxe.async.Yield;
import neko.Lib;

/**
 * ...
 * @author waneck
 */

class Main 
{
	
	static function main() 
	{
		Yield.make(a <-- 10);
		Yield.make(a <= 10);
		Yield.make(a --> 10);
		Yield.make(a >= 10);
	}
	
}


class Test<T>
{
	var a:Array<T>;
	
	public function new(a)
	{
		this.a = a;
	}
	
	public function iterator() Yield.make(
	{
		this.iterator;
		var i = 0;
		var len = a.length;
		while (i < len)
		{
			return a[i++];
		}
	})
}